class D:
    pass


class C(D):
    pass


class B(D):
    pass


class A(B, C):
    pass


print(A.__mro__)


class X:
    pass


class Y(X):
    pass


class Z:
    pass


class W(Z):
    pass


class H(Y, W):
    pass


print(H.__mro__)
